@extends("/paging_template",minWidd_th=1000,title="我的下级代理商")
@import com.mgfireworks.mgplatform.mgadmin.sys.model.*
@args List<Organization> organizationList
<s_panel>
	<s_buttons slot="button" cols="3">
		<s_button type="query"></s_button>
		<s_button type="link" icon="fa-plus" href="@url("add.html")">添加</s_button>
		<s_button type="del" href="@url("del.json?userId={0}")">删除</s_button>
	</s_buttons>
</s_panel>
<d_table min-width="1000px">
    <d_tr slot="head">
        <d_th class="d_th_row_id"></d_th>
        <d_th>机构名称</d_th>
        <d_th>负责人</d_th>
        <d_th>地址</d_th>
    </d_tr>
    @{int i=0;}
    @for(Organization o : organizationList){
    <d_tr slot="body" class="table_row @(i%2==0?"odd":"event")">
    @{i++;}
    <d_th class="td_row_id">
        <input type="checkbox" class="flat" name="__recordId" value="@o.getOrgId()"/>
    </d_th>
    <d_th>@o.getOrgName()</d_th>
    <d_th>@o.getOrgOfficial()</d_th>
    <d_th>@o.getOrgAddress()</d_th>
    </d_tr>
    }
</d_table>
